feat: remove dotnet6 runtime and update dev guide Python versions#8914
Closed
sliedig wants to merge 2 commits intoaws:developfrom
Closed
feat: remove dotnet6 runtime and update dev guide Python versions#8914sliedig wants to merge 2 commits intoaws:developfrom
sliedig wants to merge 2 commits intoaws:developfrom
Conversation
…deprecated AWS Lambda deprecated the dotnet6 runtime on December 20, 2024. Changes: - Add dotnet6 to DEPRECATED_RUNTIMES in samcli/lib/build/constants.py - Remove dotnet6 from INIT_RUNTIMES, RUNTIME_DEP_TEMPLATE_MAPPING, LAMBDA_IMAGES_RUNTIMES_MAP, and SAM_RUNTIME_TO_SCHEMAS_CODE_LANG_MAPPING in samcli/local/common/runtime_template.py - Remove dotnet6 from SUPPORTED_RUNTIMES in samcli/lib/utils/architecture.py - Remove dotnet6 from selectors_by_runtime and subfolders_by_runtime in samcli/lib/build/workflow_config.py - Remove dotnet6 from samcli/lib/init/local_manifest.json and add missing dotnet8/dotnet10 entries - Remove dotnet6 from schema/samcli.json runtime and base image enums - Update sam build DESCRIPTION to remove Dotnet6 from help text - Retain dotnet6 in Runtime enum and debug settings for local invocation compatibility during migration Test updates: - Add dotnet6 to deprecated runtimes test in test_app_builder.py - Remove dotnet6 from supported runtime tests in test_workflow_config.py, test_architecture.py, test_cli.py, and test_manifest.json - Add dotnet8/dotnet10 to test_architecture.py and test_cli.py - Remove dotnet6 parameterizations from integration and e2e tests"
…to 3.10 The minimum supported Python version is now 3.10 per pyproject.toml. Updated all examples, pyenv virtualenv names, and version references accordingly. Also corrected setup.py reference to pyproject.toml.
sliedig
added a commit
to sliedig/aws-sam-cli-app-templates
that referenced
this pull request
Apr 13, 2026
related to SAM CLI (aws/aws-sam-cli#8914). Remove all dotnet6 templates, manifest entries, tests, and CI references.
3 tasks
Contributor
|
Hello @sliedig, thank you for your contribution! According to the runtime guide, dotnet6 still allows function update through September 30, 2026. Because we still want to allow those using these runtimes to be able to update with SAM CLI until that point, we don't want to remove references to dotnet6 just yet. The PR itself looks good, but I'm gonna close this and keep it in our back pocket for when we actually want to fully get rid of it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue(s) does this change fix?
N/A - dotnet6 has reached end of support per the AWS Lambda Runtime Support Policy.
Why is this change necessary?
The
dotnet6runtime is no longer supported by AWS Lambda. It should be removed from all supported surfaces in SAM CLI and registered as deprecated so users receive clear guidance to migrate todotnet8ordotnet10.Additionally,
DEVELOPMENT_GUIDE.mdreferences Python 3.8 throughout, but the minimum supported version is now Python 3.10 perpyproject.toml.How does it address the issue?
dotnet6 deprecation:
dotnet6toDEPRECATED_RUNTIMESinsamcli/lib/build/constants.pydotnet6from build workflow configs, architecture support mappings, init templates, CLI schema, and command help textdotnet10anddotnet8tolocal_manifest.jsonas actively supported replacementsDev guide update:
setup.pyreference topyproject.tomlWhat side effects does this change have?
sam buildwithdotnet6will receive a deprecation warning and anUnsupportedRuntimeExceptionsam local invokewith existingdotnet6functions will see a deprecation warning but execution will continuedotnet6is no longer offered as a template option insam initRelated PR
aws/aws-sam-cli-app-templates#544
Mandatory Checklist
PRs will only be reviewed after checklist is complete
make prpassesmake update-reproducible-reqsif dependencies were changedBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.